{% extends 'layout.html' %}
{% block conmet %}
    <div class="container">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">修改部门</h3>
          </div>
            <div style="margin: 20px">
              <form method="post">
                  {% for obj in query %}
                  {% csrf_token %}
                  <div class="form-group">
                    <label for="exampleInputEmail1"> 部门 </label>
                    <input type="text" class="form-control" name="title" placeholder="部门" value="{{ obj.title }}">
                  </div>
                  <button type="submit" class="btn btn-success">添加</button>
                  {% endfor %}
              </form>
            </div>
        </div>
    </div>
{% endblock %}